package e.odbo.data.sample.attach;

import e.odbo.data.bean.BaseBean;
import e.odbo.data.bean.TimeLogAble;

import java.sql.Blob;
import java.util.Date;

public class OdbOAttach extends BaseBean<String> implements TimeLogAble {

//private static final long serialVersionUID =2100882217770889912L;

    public final static String ID="ID";
    public final static String CURDATE="CURDATE";
    public final static String LASTMODIFIED="LASTMODIFIED";
    public final static String OWNER="OWNER";//所有者
    public final static String ATTACHTYPE="ATTACHTYPE";//类别
    public final static String ATTACH="ATTACH";//内容
    public final static String MEMO="MEMO";//说明

    protected  String id;
    protected  Date curdate;
    protected  Date lastmodified;
    protected  String owner;
    protected  Integer attachtype;
    protected  Blob attach;
    protected  String memo;

    public OdbOAttach() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCurdate() {
        return curdate;
    }

    public void setCurdate(Date curdate) {
        this.curdate = curdate;
    }

    public Date getLastmodified() {
        return lastmodified;
    }

    public void setLastmodified(Date lastmodified) {
        this.lastmodified = lastmodified;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public Integer getAttachtype() {
        return attachtype;
    }

    public void setAttachtype(Integer attachtype) {
        this.attachtype = attachtype;
    }

    public Blob getAttach() {
        return attach;
    }

    public void setAttach(Blob attach) {
        this.attach = attach;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public String getKey() {
        return id;
    }

    public void setKey(String id) {
        this.id = id;
    }

    public String toString() {
        return "id="+id
                +",curdate="+curdate
                +",lastmodified="+lastmodified
                +",owner="+owner
                +",attachtype="+attachtype
                +",attach="+attach
                +",memo="+memo;
    }

    @Override
    public Date getCreateDate() {
        return curdate;
    }

    @Override
    public void setCreateDate(Date adate) {
        curdate=adate;
    }

    @Override
    public Date getLastModified() {
        return lastmodified;
    }

    @Override
    public void setLastModified(Date lastModified) {
        this.lastmodified=lastModified;
    }
}